{*
* 2007-2011 PrestaShop 
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <contact@prestashop.com>
*  @copyright  2007-2011 PrestaShop SA
*  @version  Release: $Revision: 6594 $
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

<!-- MODULE Block new products -->
<div id="devilNewProducts" class="block products_block">
	<h4><a href="{$link->getPageLink('new-products.php')}" title="{l s='New products' mod='devilNewProduct'}">{l s='New products' mod='devilNewProduct'}</a></h4>
	<a href="{$link->getPageLink('new-products.php')}" title="{l s='All new products' mod='devilNewProduct'}" class="showAll">{l s='All new products' mod='devilNewProduct'}</a>
	<div class="block_content">
	{if $new_products !== false}
	
		<ul class="product_images clearfix">
		{foreach from=$new_products item='product' name='newProducts'}
			{if $smarty.foreach.newProducts.index < 2}
				<li{if $smarty.foreach.newProducts.first} class="first"{/if}>
				<div class="product_desc">
					<h5><a  href="{$product.link}" >{$product.name}</a></h5>
					<a class="smallCont" href="{$product.link}">{$product.description_short}</a>
				<div class="btns">
					<p class="price_container">
					{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}
					</p>
				</div>
				<a class="link" href="{$product.link}">{l s='view' mod='devilNewProduct'}</a>
				</div>
					<a class="product_image" href="{$product.link}" title="{$product.legend|escape:html:'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'medium')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.legend|escape:html:'UTF-8'}" /></a>
				</li>
			{/if}
		{/foreach}
		</ul>
		
		
	{else}
		<p>{l s='No new products at this time' mod='devilNewProduct'}</p>
	{/if}
	</div>
</div>
<!-- /MODULE Block new products -->